/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Long Island</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15157 (C-0-T14914-S14915-S14916-S15157-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianLongIsland()
 * @model extendedMetaData="name='RaceAmericanIndianLongIsland'"
 * @generated
 */
public enum RaceAmericanIndianLongIsland implements Enumerator {
	/**
	 * The '<em><b>13250</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13250_VALUE
	 * @generated
	 * @ordered
	 */
	_13250(0, "_13250", "1325-0"),

	/**
	 * The '<em><b>13268</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13268_VALUE
	 * @generated
	 * @ordered
	 */
	_13268(1, "_13268", "1326-8"),

	/**
	 * The '<em><b>13276</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13276_VALUE
	 * @generated
	 * @ordered
	 */
	_13276(2, "_13276", "1327-6"),

	/**
	 * The '<em><b>13284</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13284_VALUE
	 * @generated
	 * @ordered
	 */
	_13284(3, "_13284", "1328-4"),

	/**
	 * The '<em><b>13292</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13292_VALUE
	 * @generated
	 * @ordered
	 */
	_13292(4, "_13292", "1329-2");

	/**
	 * The '<em><b>13250</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13250</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13250
	 * @model literal="1325-0"
	 * @generated
	 * @ordered
	 */
	public static final int _13250_VALUE = 0;

	/**
	 * The '<em><b>13268</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13268</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13268
	 * @model literal="1326-8"
	 * @generated
	 * @ordered
	 */
	public static final int _13268_VALUE = 1;

	/**
	 * The '<em><b>13276</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13276</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13276
	 * @model literal="1327-6"
	 * @generated
	 * @ordered
	 */
	public static final int _13276_VALUE = 2;

	/**
	 * The '<em><b>13284</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13284</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13284
	 * @model literal="1328-4"
	 * @generated
	 * @ordered
	 */
	public static final int _13284_VALUE = 3;

	/**
	 * The '<em><b>13292</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13292</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13292
	 * @model literal="1329-2"
	 * @generated
	 * @ordered
	 */
	public static final int _13292_VALUE = 4;

	/**
	 * An array of all the '<em><b>Race American Indian Long Island</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianLongIsland[] VALUES_ARRAY =
		new RaceAmericanIndianLongIsland[] {
			_13250,
			_13268,
			_13276,
			_13284,
			_13292,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Long Island</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianLongIsland> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Long Island</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianLongIsland get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianLongIsland result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Long Island</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianLongIsland getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianLongIsland result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Long Island</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianLongIsland get(int value) {
		switch (value) {
			case _13250_VALUE: return _13250;
			case _13268_VALUE: return _13268;
			case _13276_VALUE: return _13276;
			case _13284_VALUE: return _13284;
			case _13292_VALUE: return _13292;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianLongIsland(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianLongIsland
